<?php
require 'Home/Controller/Controller.php ';
require 'Home/Model/ListModel.php';
class ListController extends Controller{
	function __Construct(){
		parent::__Construct();
		$this->model = new ListModel();
	}
	function list1(){
		$id = $_GET['id'];
	
	$data = $this->model->getct();

	$list = $this->model->getCbl($id,$data);
	$getbt = $this->model->getbt();
		
		include 'Home/View/Index/list1.php';
	}


	function list2(){
		$id = $_GET['id'];

			
	$data = $this->model->getct1();

	$list = $this->model->getCbl1($id,$data);
	$getbt = $this->model->getbt();

		include 'Home/View/Index/list2.php';
	}

















	function show(){
		$id = $_GET['id'];
		//echo $id;
		//$getList = $this->model->getList();
		$getCarphotolist = $this->model->getCarphotoList();
		$getCarTypelist  = $this->model->getCartypeList ();
		//$getCarbrandByid  = $this->model->getCarbrandById($id);
		//$getCarphotoByid  = $this->model->getCarphotoById($id);
		//$getCartypeByid = $this->model->getCartypeById($id);
		$show=$this->model->getshow($id);
		
		include 'Home/View/Index/show.php';
	}
	
	
}

?>